package adelsonVelskyLandis;

public class Test {
    public static void main(String[] args) {
        int[] array = {30, 20, 90, 60, 180, 40};
        //用例1:  4, 2, 6, 1, 3, 5, 15, 7, 16,14
        //int[] array = {30,20,90,60,180,40};
        AVL avlTree = new AVL();
        for (int i = 0; i < array.length; i++) {
            avlTree.insert(array[i]);
        }
        System.out.println(avlTree.isBalanced(avlTree.root));
    }
}
